/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.expert.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.expert.entity.SolutionFaceCareLocationSeason;

/**
 * 方案护理区域季节DAO接口
 * @author liujiang
 * @version 2014-02-17
 */
public interface SolutionFaceCareLocationSeasonDao extends SolutionFaceCareLocationSeasonDaoCustom, CrudRepository<SolutionFaceCareLocationSeason, Long> {
	@Modifying
	@Query("delete from SolutionFaceCareLocationSeason s where s.solutionFace.id = ?1 AND s.care.id = ?2 AND s.systemDefinitionAreaSeason.id = ?3")
	public void delete(Long sid, Long cid, Long tid);
}

/**
 * DAO自定义接口
 * @author liujiang
 */
interface SolutionFaceCareLocationSeasonDaoCustom extends BaseDao<SolutionFaceCareLocationSeason> {

}

/**
 * DAO自定义接口实现
 * @author liujiang
 */
@Component
class SolutionFaceCareLocationSeasonDaoImpl extends BaseDaoImpl<SolutionFaceCareLocationSeason> implements SolutionFaceCareLocationSeasonDaoCustom {

}
